package com.tjhk.netty.serialize.annotation;

import com.tjhk.netty.serialize.DataType;

import java.lang.annotation.*;

/**
 * 报文与Bean之间的转换
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Field {
    int index() default -1;
    int length() default -1;
    DataType type() default DataType.BYTE;
    String charset() default "GBK";
    byte pad() default 0x00;
    String desc() default "";
}
